<?php
file_put_contents("res.reply.txt", '');

foreach (file('s.txt') as $line)
{
	$line = trim($line);
	file_put_contents("res.reply.txt", strlen($line) > 20 ? $line."\n" : '', FILE_APPEND);
}